package com.xw.service;

import org.springframework.stereotype.Service;
/**
 * @Description: TODO
 * @Date: 2024/12/18 16:52
 * @Version: 1.0
 * @author 86151
 */
@Service
public interface RedisService {

    boolean like(String linkId, String userId);

    boolean unlike(String linkId, String userId);

    boolean isLiked(String linkId, String userId);


    boolean collect(String s, String s1);

    boolean uncollect(String s, String s1);

    boolean isCollected(String s, String s1);

    long getLikesCount(String linkId);
}